<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>侯体宗</title>
<link rel="stylesheet" href="../css/reset.css">
<link rel="stylesheet" href="../css/adm.css">
</head>
<body>
    <header>
        <h1>侯体宗Blog后台管理界面</h1>
    </header>
    <div id="main">

<!--左侧公共区域-->
<?php include(ROOT.'view/admin/left.html'); ?>

        <div id="rside">
            <table>
                <tr>
                    <td>序号</td>
                    <td>栏目名称</td>
                    <td>数量</td>
                    <td>操作</td>
                </tr>
                <?php foreach ($num as $v) {?>
                <tr>
                    <td><?php echo $v['cat_id'];?></td>
                    <td><a href="../index.php?cat_id=<?php echo $v['cat_id'];?>"><?php echo $v['catname'];?></a></td>
                    <td><span class="badge"><?php echo $v['num'];?></span></td>
                    <td>
                <a href="catlistdit.php?cat_id=<?php echo $v['cat_id'];?>">编辑</a>|
                <a href="catlistdel.php?cat_id=<?php echo $v['cat_id'];?>"onclick="if(!confirm('确实要删除吗？')){return false;};" >删除</a>
                    </td>
                </tr>
                <?php }?>
            </table>
        </div>
    </div>
    <footer>
        Copyright &copy; 2016 · GeneratePress · WordPress
    </footer>
</body>
</html>